$(function () {
    var goodId = location.search;
    // console.log(goodId);
    $.ajax({
        url:'http://193.112.55.79:9090/api/getdiscountproduct'+goodId,
        dataType:'json',
        type:"get",
        success:function (res) {
            // console.log(res);
            var html = template('infoTemp',{data:res.result});
            // console.log(html);
            $('.content').html(html);      
        }
    })
});